CC = gcc
CFLAGS = -Wall -Wextra -g
LDFLAGS = -lm

SRC = $(wildcard *.c)
OBJ = $(SRC:.c=.o)

LIB_NAME = libscicalc.a

all: $(LIB_NAME)

$(LIB_NAME): $(OBJ)
	ar rcs $@ $^

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $<

clean:
	rm -f $(OBJ) $(LIB_NAME)

.PHONY: all clean